﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BaseSingleton<T> where T: BaseSingleton<T>,new ()
{
    static T s_Instance;
    public static T instance
    {
        get
        {
            if(s_Instance ==null)
                s_Instance = new T();
            return s_Instance;
        }
    }
}
